package com.sita.redsun.other.test;

/**
 * Created by zhebinwang on 2017/3/21.
 */
public class ClientMainThread extends  Thread {

    private int sendnumber=0; //到底发送了多少次。
    private int threadnumber=-1;//线程号
    private String gpsid;
    private String ip;

    public int getSendnumber() {
        return sendnumber;
    }

    public void setSendnumber(int sendnumber) {
        this.sendnumber = sendnumber;
    }

    public int getThreadnumber() {
        return threadnumber;
    }

    public void setThreadnumber(int threadnumber) {
        this.threadnumber = threadnumber;
    }

    private String port;

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getGpsid() {
        return gpsid;
    }

    public void setGpsid(String gpsid) {
        this.gpsid = gpsid;
    }

    public String getIp() {
        return ip;
    }


    public void setIp(String ip) {
        this.ip = ip;
    }

    public void run(){
        ClientMainV2 clientMainV2=new ClientMainV2();
        clientMainV2.setSendnumber(0);
        clientMainV2.setThreadnumber(threadnumber);
        try {
            clientMainV2.dotest(gpsid,ip,port);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
